const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  publicPath: './',
  outputDir: 'dist',
  assetsDir: 'static',
  productionSourceMap:false,
  lintOnSave: true,
  runtimeCompiler: true, //关键点在这
  devServer: {
    proxy: {
      '/api': {
        target: 'http://43.142.46.69:9999', //API服务器的地址
        secure: false,
        changeOrigin: true, // 是否跨域，虚拟的站点需要更管origin
        pathRewrite: {
          '^/api': ''
        }
      },

    }
  }

})